package org.example.classtopia.Model.Entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDateTime;

/**
 * AI聊天消息实体
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AiChatMessage {
    private String id;
    private String sessionId;
    private String role;
    private String content;
    private LocalDateTime timestamp;
    private String username;
    private String avatar;
    private Long userId; // 新增：消息归属用户，可为null
}
